package com.yunsom.testdemo.design.builder;

/**
 * @author Xbao
 * @version 1.0
 * @description
 * @date 2021/3/30 19:08
 */
public class HotPotBuilder {

  public HotPot prepareSpicyHotPot(){
    HotPot hotPot = new HotPot();
    hotPot.addMaterial(new Pepper());
    hotPot.addMaterial(new Meat());
    hotPot.addMaterial(new Vegetable());
    return hotPot;
  }

  public HotPot prepareThinSoupHotPot(){
    HotPot hotPot = new HotPot();
    hotPot.addMaterial(new Soup());
    hotPot.addMaterial(new Vegetable());
    return hotPot;
  }

}
